setGravity
Sets the gravity used to align the popup window to its anchor view.
If the popup is showing, calling this method will take effect only the next time the popup is shown.
Parameters
gravity
the gravity used to align the popup window